package com.aratek.huwai.dao;

import com.aratek.huwai.model.ProgramEntity;
import com.aratek.huwai.model.ProgramScoreEntity;
import org.springframework.data.repository.CrudRepository;

import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @Author 姜寄羽
 * 节目处理
 * @Date 2018/1/26 15:30
 */
public interface ProgramScoreRepository extends CrudRepository<ProgramScoreEntity,Integer> {

    AtomicInteger KEY  = new AtomicInteger(1);

    int countByProgramIdAndRaterId(Integer programId, Integer raterId);

    List<ProgramScoreEntity> findByProgramId(Integer id);
}
